import request from '@/utils/request'
// 获取文章数据
export function getarticle(params) {
  return request.get('/ydd_article/list', { params })
}
// 添加文章

export function addarticle(data) {
  return request({
    url: '/ydd_article/add',
    method: 'post',
    data
  })
}
// 文章详情

export function articledetail(id) {
  return request.get('/ydd_article/rowInfo', { params: { id }})
}
// 修改文章
export function editarticle(data) {
  return request.post('/ydd_article/update', data)
}
// 删除文章
export function delarticle(id) {
  return request.get('/ydd_article/del', { params: { id }})
}
